#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './oriDlg.ui'
**
** Created: 木  8月 4 09:46:46 2011
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "oriDlg.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a oriDlg as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
oriDlg::oriDlg( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "oriDlg" );
    oriDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "oriDlgLayout"); 

    layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 

    okBut = new QPushButton( this, "okBut" );
    okBut->setMinimumSize( QSize( 200, 0 ) );
    layout5->addWidget( okBut );
    spacer2 = new QSpacerItem( 51, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout5->addItem( spacer2 );

    cancelBut = new QPushButton( this, "cancelBut" );
    cancelBut->setMinimumSize( QSize( 200, 0 ) );
    layout5->addWidget( cancelBut );

    oriDlgLayout->addLayout( layout5, 1, 0 );

    buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
    buttonGroup1->setColumnLayout(0, Qt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 11 );
    buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( Qt::AlignTop );

    layout4 = new QVBoxLayout( 0, 0, 6, "layout4"); 

    unknownBut = new QRadioButton( buttonGroup1, "unknownBut" );
    unknownBut->setChecked( TRUE );
    layout4->addWidget( unknownBut );

    layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 

    layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); 

    SHTBut = new QRadioButton( buttonGroup1, "SHTBut" );
    layout2->addWidget( SHTBut );

    SHSBut = new QRadioButton( buttonGroup1, "SHSBut" );
    layout2->addWidget( SHSBut );

    SHCBut = new QRadioButton( buttonGroup1, "SHCBut" );
    layout2->addWidget( SHCBut );

    SFTBut = new QRadioButton( buttonGroup1, "SFTBut" );
    layout2->addWidget( SFTBut );

    SFSBut = new QRadioButton( buttonGroup1, "SFSBut" );
    layout2->addWidget( SFSBut );

    SFCBut = new QRadioButton( buttonGroup1, "SFCBut" );
    layout2->addWidget( SFCBut );

    PHTBut = new QRadioButton( buttonGroup1, "PHTBut" );
    layout2->addWidget( PHTBut );

    PHSBut = new QRadioButton( buttonGroup1, "PHSBut" );
    layout2->addWidget( PHSBut );

    PHCBut = new QRadioButton( buttonGroup1, "PHCBut" );
    layout2->addWidget( PHCBut );

    PFTBut = new QRadioButton( buttonGroup1, "PFTBut" );
    layout2->addWidget( PFTBut );

    PFSBut = new QRadioButton( buttonGroup1, "PFSBut" );
    layout2->addWidget( PFSBut );

    PFCBut = new QRadioButton( buttonGroup1, "PFCBut" );
    layout2->addWidget( PFCBut );
    layout3->addLayout( layout2 );

    layout1 = new QVBoxLayout( 0, 0, 6, "layout1"); 

    DRHTBut = new QRadioButton( buttonGroup1, "DRHTBut" );
    layout1->addWidget( DRHTBut );

    DRHSBut = new QRadioButton( buttonGroup1, "DRHSBut" );
    layout1->addWidget( DRHSBut );

    DRHCBut = new QRadioButton( buttonGroup1, "DRHCBut" );
    layout1->addWidget( DRHCBut );

    DRFTBut = new QRadioButton( buttonGroup1, "DRFTBut" );
    layout1->addWidget( DRFTBut );

    DRFSBut = new QRadioButton( buttonGroup1, "DRFSBut" );
    layout1->addWidget( DRFSBut );

    DRFCBut = new QRadioButton( buttonGroup1, "DRFCBut" );
    layout1->addWidget( DRFCBut );

    DLHTBut = new QRadioButton( buttonGroup1, "DLHTBut" );
    layout1->addWidget( DLHTBut );

    DLHSBut = new QRadioButton( buttonGroup1, "DLHSBut" );
    layout1->addWidget( DLHSBut );

    DLHCBut = new QRadioButton( buttonGroup1, "DLHCBut" );
    layout1->addWidget( DLHCBut );

    DLFTBut = new QRadioButton( buttonGroup1, "DLFTBut" );
    layout1->addWidget( DLFTBut );

    DLFSBut = new QRadioButton( buttonGroup1, "DLFSBut" );
    layout1->addWidget( DLFSBut );

    DLFCBut = new QRadioButton( buttonGroup1, "DLFCBut" );
    layout1->addWidget( DLFCBut );
    layout3->addLayout( layout1 );
    layout4->addLayout( layout3 );

    buttonGroup1Layout->addLayout( layout4, 0, 0 );

    oriDlgLayout->addWidget( buttonGroup1, 0, 0 );
    languageChange();
    resize( QSize(718, 514).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cancelBut, SIGNAL( clicked() ), this, SLOT( close() ) );
    connect( okBut, SIGNAL( clicked() ), this, SLOT( oriSlot() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
oriDlg::~oriDlg()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void oriDlg::languageChange()
{
    setCaption( tr2i18n( "Image Orientation Patient" ) );
    okBut->setText( tr2i18n( "ok" ) );
    cancelBut->setText( tr2i18n( "cancel" ) );
    buttonGroup1->setTitle( tr2i18n( "Orientation" ) );
    unknownBut->setText( tr2i18n( "Unknown" ) );
    SHTBut->setText( tr2i18n( "Suprine; Head-First; Transverse" ) );
    SHSBut->setText( tr2i18n( "Suprine; Head-First; Sagittal" ) );
    SHCBut->setText( tr2i18n( "Suprine; Head-First; Coronal" ) );
    SFTBut->setText( tr2i18n( "Suprine; Feet-First; Transverse" ) );
    SFSBut->setText( tr2i18n( "Suprine; Feet-First; Sagittal" ) );
    SFCBut->setText( tr2i18n( "Suprine; Feet-First; Coronal" ) );
    PHTBut->setText( tr2i18n( "Prone; Head-First; Transverse" ) );
    PHSBut->setText( tr2i18n( "Prone; Head-First; Sagittal" ) );
    PHCBut->setText( tr2i18n( "Prone; Head-First; Coronal" ) );
    PFTBut->setText( tr2i18n( "Prone; Feet-First; Transverse" ) );
    PFSBut->setText( tr2i18n( "Prone; Feet-First; Sagittal" ) );
    PFCBut->setText( tr2i18n( "Prone; Feet-First; Coronal" ) );
    DRHTBut->setText( tr2i18n( "Decubitus-Right; Head-First; Transverse" ) );
    DRHSBut->setText( tr2i18n( "Decubitus-Right; Head-First; Sagittal" ) );
    DRHCBut->setText( tr2i18n( "Decubitus-Right; Head-First; Coronal" ) );
    DRFTBut->setText( tr2i18n( "Decubitus-Right; Feet-First; Transverse" ) );
    DRFSBut->setText( tr2i18n( "Decubitus-Right; Feet-First; Sagittal" ) );
    DRFCBut->setText( tr2i18n( "Decubitus-Right; Feet-First; Coronal" ) );
    DLHTBut->setText( tr2i18n( "Decubitus-Left; Head-First; Transverse" ) );
    DLHSBut->setText( tr2i18n( "Decubitus-Left; Head-First; Sagittal" ) );
    DLHCBut->setText( tr2i18n( "Decubitus-Left; Head-First; Coronal" ) );
    DLFTBut->setText( tr2i18n( "Decubitus-Left; Feet-First; Transverse" ) );
    DLFSBut->setText( tr2i18n( "Decubitus-Left; Feet-First; Sagittal" ) );
    DLFCBut->setText( tr2i18n( "Decubitus-Left; Feet-First; Coronal" ) );
}

void oriDlg::oriSlot()
{
    qWarning( "oriDlg::oriSlot(): Not implemented yet" );
}

#include "oriDlg.moc"
